home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / misc / amag / sh9301c.lha / CPlusPlus(S.79) / Listing1.cpp next >
C/C++ Source or Header  |  1993-01-22  |  596b  |  24 lines

  1. #include <exec/types.h>
  2. #include <dos/dos.h>
  3. #include <clib/exec_protos.h>
  4. #include <rct/rctdef.h>
  5. #include <clib/rct_protos.h>
  6. #include <rct/rcttagfuncs.h>
  7. #include <iostream.h>
  8.  
  9. APTR RctBase, app;
  10.  
  11. void main() {
  12.  
  13. if ((RctBase = OpenLibrary("rct.library",16)) &&
  14.   (app = R_InitApplTags(TAG_DONE)) {
  15.     if( R_FormAlertTags( app, RFA_DefaultID, 1L, RFA_AlertText,
  16.     "[Wählen Sie Ihre Programmiersprache!][C++|ANSI-C]", TAG_DONE))
  17.         cout << "Warum nur ANSI-C?";
  18.     else
  19.         cout << "Ihre Entscheidung ist goldrichtig!"
  20.     R_ExitAppl(app);
  21.     CloseLibrary((Library*)RctBase);
  22.   }
  23. }
  24.